package com.qf.mapper;

import com.qf.entity.OrderEntity;
import com.qf.pojo.OrderPojo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    public boolean addOrder(OrderEntity oe);

    public boolean addOrderDetail(@Param("oid") String oid, @Param("gid") String gid, @Param("odPrice") Float odPrice, @Param("odNumber") Integer odNumber);

    public boolean addAddressToOrder(@Param("addressId") Integer addressId, @Param("oid") String oid);

    public boolean upOstatus(@Param("oid") String oid);

    public OrderPojo selectOrder(@Param("oid") String oid);

    public boolean payMon(@Param("oid") String oid);

    public List<OrderPojo> selectOrderById(@Param("cid") Integer cid);

    public List<OrderPojo> selectOrder02(OrderEntity oe);

    public boolean deleteOrder(@Param("oid") String oid);

    public boolean updateOrder(OrderEntity oe);

    public OrderPojo selectOrderByOid(@Param("oid") String oid);
}

